import { Component, OnInit, ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'app-scanoutpatientpayinfo',
  templateUrl: './scanoutpatientpayinfo.component.html',
  styleUrls: ['./scanoutpatientpayinfo.component.css'],
  encapsulation: ViewEncapsulation.None
})
export class ScanoutpatientpayinfoComponent implements OnInit {

  outpatientpay: any;
  outpatientlist: any;
  scanname: string;
  mzh: string;

  constructor() { }

  ngOnInit() {
    this.scanname = sessionStorage.getItem('scanname');
    this.mzh = JSON.parse(sessionStorage.getItem('mzh'));
    this.outpatientpay = JSON.parse(sessionStorage.getItem('scanoutpatientpay'));
    this.outpatientlist=JSON.parse(sessionStorage.getItem('scanoutpatientpayinfo'))
    console.log(this.outpatientlist[0].ZFZT);
  }

}
